import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';


class DialogDelegate {

  static void showBottomPop(BuildContext context, String title,
      {Widget? child, bool isScrollControlled = false, double height = double.infinity}) {
    showModalBottomSheet(
        context: context,
        backgroundColor: Colors.transparent,
        isScrollControlled: isScrollControlled,
        builder: (BuildContext context) {
          return Container(
            height: height,
            decoration: const ShapeDecoration(
              color: Color(0xffffffff),
              shape: RoundedRectangleBorder(
                borderRadius: BorderRadius.only(
                    topLeft: Radius.circular(15),
                    topRight: Radius.circular(15)),
              ),
            ),
            child: child,
          );
        });
  }



}
